﻿using Server.MessageModule.Message;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Server.MessageModule.MessageProcessor
{
    class BaseMessageProcessor : IMessageProcessor
    {
        protected string _type;
        protected IMessageDispatcher _msgDispatcher;

        public BaseMessageProcessor(string type)
        {
            _type = type;
        }

        public virtual void onReceiptMessage(INetworkMessage msg)
        {
        }

        public virtual string getTypeProcessor()
        {
            return _type;
        }

        public IMessageDispatcher getMessageDispatcher()
        {
            return _msgDispatcher;
        }

        public void setMessageDispatcher(IMessageDispatcher value)
        {
            _msgDispatcher = value;
        }
    }
}
